#!/bin/bash
pkill java
### RocketMQ 安装目录
ROCKETMQ_HOME="/data/rocketmq"
### 启动 
nohup $ROCKETMQ_HOME/bin/mqnamesrv &
nohup $ROCKETMQ_HOME/bin/mqbroker -c $ROCKETMQ_HOME/conf/2m-2s-sync/broker-0.properties &
nohup $ROCKETMQ_HOME/bin/mqbroker -c $ROCKETMQ_HOME/conf/2m-2s-sync/broker-1.properties &